
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>sdk开发 · Aivin开发笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Aivin">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-local-video/video-js.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="APP优化.html" />
    
    
    <link rel="prev" href="App组件化开发.html" />
    

    
        <link rel="shortcut icon" href='../../assets/images/favicon.ico' type="image/x-icon">
    
    
        <link rel="bookmark" href='../../assets/images/favicon.ico' type="image/x-icon">
    
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    首页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../doc/常用网站.html">
            
                <a href="../doc/常用网站.html">
            
                    
                    常用网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../常用软件/常用软件和框架.html">
            
                <a href="../常用软件/常用软件和框架.html">
            
                    
                    常用软件和框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../doc/开发规范.html">
            
                <a href="../doc/开发规范.html">
            
                    
                    开发规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../doc/开源软件.html">
            
                <a href="../doc/开源软件.html">
            
                    
                    开源软件和框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../doc/Android常用代码.html">
            
                <a href="../doc/Android常用代码.html">
            
                    
                    Android常用代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../源码阅读/源码阅读配置.html">
            
                <a href="../源码阅读/源码阅读配置.html">
            
                    
                    源码阅读
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../源码阅读/其他框架源码.html">
            
                <a href="../源码阅读/其他框架源码.html">
            
                    
                    其他框架源码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../产品经理/产品经理.html">
            
                <a href="../产品经理/产品经理.html">
            
                    
                    产品经理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../设计模式/设计模式.html">
            
                <a href="../设计模式/设计模式.html">
            
                    
                    设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../设计模式/设计模式.html">
            
                <a href="../设计模式/设计模式.html">
            
                    
                    设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../设计模式/模式详解.html">
            
                <a href="../设计模式/模式详解.html">
            
                    
                    模式详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../设计模式/mvc等.html">
            
                <a href="../设计模式/mvc等.html">
            
                    
                    mvc等
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../数据结构/常用数据结构.html">
            
                <a href="../数据结构/常用数据结构.html">
            
                    
                    基本算法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../数据结构/常用数据结构.html">
            
                <a href="../数据结构/常用数据结构.html">
            
                    
                    常用数据结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../常用算法/算法术语.html">
            
                <a href="../常用算法/算法术语.html">
            
                    
                    算法术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../常用算法/排序算法.html">
            
                <a href="../常用算法/排序算法.html">
            
                    
                    排序算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../常用算法/查找算法.html">
            
                <a href="../常用算法/查找算法.html">
            
                    
                    查找算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../常用算法/大数相加.html">
            
                <a href="../常用算法/大数相加.html">
            
                    
                    大数相加
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.6" data-path="../常用算法/集合的所有子集.html">
            
                <a href="../常用算法/集合的所有子集.html">
            
                    
                    获得集合的所有子集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.7" data-path="../常用算法/扫描线种子填充算法.html">
            
                <a href="../常用算法/扫描线种子填充算法.html">
            
                    
                    扫描线种子填充算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.8" data-path="../常用算法/其他算法.html">
            
                <a href="../常用算法/其他算法.html">
            
                    
                    其他算法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../java基础/原码补码反码.html">
            
                <a href="../java基础/原码补码反码.html">
            
                    
                    Java部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../java基础/原码补码反码.html">
            
                <a href="../java基础/原码补码反码.html">
            
                    
                    原码补码反码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../java基础/java常用代码.html">
            
                <a href="../java基础/java常用代码.html">
            
                    
                    java常用代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../java基础/JVM详解.html">
            
                <a href="../java基础/JVM详解.html">
            
                    
                    JVM详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../java基础/类加载机制.html">
            
                <a href="../java基础/类加载机制.html">
            
                    
                    类加载机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../java基础/内存模型.html">
            
                <a href="../java基础/内存模型.html">
            
                    
                    内存模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="../java基础/GC机制.html">
            
                <a href="../java基础/GC机制.html">
            
                    
                    GC机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.7" data-path="../java基础/对象内存布局.html">
            
                <a href="../java基础/对象内存布局.html">
            
                    
                    对象内存布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.8" data-path="../java基础/继承多态.html">
            
                <a href="../java基础/继承多态.html">
            
                    
                    继承和多态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.9" data-path="../java基础/相等判断.html">
            
                <a href="../java基础/相等判断.html">
            
                    
                    相等判断
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.10" data-path="../java基础/Java容器类.html">
            
                <a href="../java基础/Java容器类.html">
            
                    
                    Java容器类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.11" data-path="../java基础/Java枚举.html">
            
                <a href="../java基础/Java枚举.html">
            
                    
                    Java枚举
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.12" data-path="../java基础/自定义异常.html">
            
                <a href="../java基础/自定义异常.html">
            
                    
                    自定义异常
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.13" data-path="../java基础/深度拷贝.html">
            
                <a href="../java基础/深度拷贝.html">
            
                    
                    深度拷贝
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.14" data-path="../java基础/泛型详解.html">
            
                <a href="../java基础/泛型详解.html">
            
                    
                    泛型详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.15" data-path="../java基础/线程详解.html">
            
                <a href="../java基础/线程详解.html">
            
                    
                    线程详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.16" data-path="../java基础/java注解.html">
            
                <a href="../java基础/java注解.html">
            
                    
                    注解详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.17" data-path="../java基础/数据解析.html">
            
                <a href="../java基础/数据解析.html">
            
                    
                    数据解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.18" data-path="../java基础/java8新特性.html">
            
                <a href="../java基础/java8新特性.html">
            
                    
                    Java8新特性
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="android零散知识.html">
            
                <a href="android零散知识.html">
            
                    
                    Android部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="基础控件使用.html">
            
                <a href="基础控件使用.html">
            
                    
                    基础控件使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="android零散知识.html">
            
                <a href="android零散知识.html">
            
                    
                    Android零散知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="android坐标体系.html">
            
                <a href="android坐标体系.html">
            
                    
                    Android坐标体系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.4" data-path="APP的启动流程.html">
            
                <a href="APP的启动流程.html">
            
                    
                    APP启动流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.5" data-path="View加载流程.html">
            
                <a href="View加载流程.html">
            
                    
                    View加载流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.6" data-path="事件分发机制.html">
            
                <a href="事件分发机制.html">
            
                    
                    事件分发机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.7" data-path="控件绘制流程.html">
            
                <a href="控件绘制流程.html">
            
                    
                    控件绘制流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.8" data-path="常用shape.html">
            
                <a href="常用shape.html">
            
                    
                    常用shape
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.9" data-path="进程通信.html">
            
                <a href="进程通信.html">
            
                    
                    进程通信
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.10" data-path="../通信方式/通信方式详解.html">
            
                <a href="../通信方式/通信方式详解.html">
            
                    
                    通信方式详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.11" data-path="Binder详解.html">
            
                <a href="Binder详解.html">
            
                    
                    Binder详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.12" data-path="Handler详解.html">
            
                <a href="Handler详解.html">
            
                    
                    Handle详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.13" data-path="Fragment详解.html">
            
                <a href="Fragment详解.html">
            
                    
                    Fragment详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.14" data-path="Activity详解.html">
            
                <a href="Activity详解.html">
            
                    
                    Activity详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.15" data-path="BroadcastReceiver.html">
            
                <a href="BroadcastReceiver.html">
            
                    
                    BroadcastReceiver详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.16" data-path="Service服务.html">
            
                <a href="Service服务.html">
            
                    
                    Service详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.17" data-path="动画详解.html">
            
                <a href="动画详解.html">
            
                    
                    动画详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.18" data-path="屏幕刷新机制.html">
            
                <a href="屏幕刷新机制.html">
            
                    
                    屏幕刷新机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.19" data-path="屏幕适配.html">
            
                <a href="屏幕适配.html">
            
                    
                    屏幕适配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.20" data-path="图片加载详解.html">
            
                <a href="图片加载详解.html">
            
                    
                    图片加载详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.21" data-path="WebView详解.html">
            
                <a href="WebView详解.html">
            
                    
                    WebView详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.22" data-path="沉浸式.html">
            
                <a href="沉浸式.html">
            
                    
                    沉浸式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.23" data-path="相机模块.html">
            
                <a href="相机模块.html">
            
                    
                    相机模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.24" data-path="地图模块.html">
            
                <a href="地图模块.html">
            
                    
                    地图模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.25" data-path="Androidstudio插件开发.html">
            
                <a href="Androidstudio插件开发.html">
            
                    
                    Androidstudio插件开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.26" data-path="Apk插件化开发.html">
            
                <a href="Apk插件化开发.html">
            
                    
                    Apk插件化开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.27" data-path="App组件化开发.html">
            
                <a href="App组件化开发.html">
            
                    
                    App组件化开发
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.12.28" data-path="sdk开发.html">
            
                <a href="sdk开发.html">
            
                    
                    sdk开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.29" data-path="APP优化.html">
            
                <a href="APP优化.html">
            
                    
                    APP优化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.30" data-path="项目参数配置.html">
            
                <a href="项目参数配置.html">
            
                    
                    项目参数配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.31" data-path="App发布.html">
            
                <a href="App发布.html">
            
                    
                    App发布
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.32" data-path="Android外挂.html">
            
                <a href="Android外挂.html">
            
                    
                    Android外挂
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.33" data-path="Android字节码插桩.html">
            
                <a href="Android字节码插桩.html">
            
                    
                    Android字节码插桩
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.34" data-path="智能家居.html">
            
                <a href="智能家居.html">
            
                    
                    智能家居
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../python/python基础.html">
            
                <a href="../python/python基础.html">
            
                    
                    python部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../python/python基础.html">
            
                <a href="../python/python基础.html">
            
                    
                    python基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../python/python爬虫.html">
            
                <a href="../python/python爬虫.html">
            
                    
                    python爬虫
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../gradle/Groovy.html">
            
                <a href="../gradle/Groovy.html">
            
                    
                    Groovy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../kotlin/kotlin部分.html">
            
                <a href="../kotlin/kotlin部分.html">
            
                    
                    kotlin部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../flutter/flutter部分.html">
            
                <a href="../flutter/flutter部分.html">
            
                    
                    flutter部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../native/ccpp.html">
            
                <a href="../native/ccpp.html">
            
                    
                    native部分
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../native/Linux.html">
            
                <a href="../native/Linux.html">
            
                    
                    Linux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../native/ccpp.html">
            
                <a href="../native/ccpp.html">
            
                    
                    cCpp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.3" data-path="../native/NDK.html">
            
                <a href="../native/NDK.html">
            
                    
                    NDK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.4" data-path="../native/系统编译剪裁.html">
            
                <a href="../native/系统编译剪裁.html">
            
                    
                    系统编译剪裁
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.5" data-path="../native/音视频.html">
            
                <a href="../native/音视频.html">
            
                    
                    音视频
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.6" data-path="../native/音视频第三方库.html">
            
                <a href="../native/音视频第三方库.html">
            
                    
                    音视频第三方库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.7" data-path="../native/相关代码.html">
            
                <a href="../native/相关代码.html">
            
                    
                    相关代码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="../server/服务器部分.html">
            
                <a href="../server/服务器部分.html">
            
                    
                    服务器部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="../webDev/web部分.html">
            
                <a href="../webDev/web部分.html">
            
                    
                    web部分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="../人工智能/人工智能相关概念.html">
            
                <a href="../人工智能/人工智能相关概念.html">
            
                    
                    人工智能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="../面试真题/极飞.html">
            
                <a href="../面试真题/极飞.html">
            
                    
                    面试真题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >sdk开发</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#sdk&#x5F00;&#x53D1;"><b>1. </b>SDK&#x5F00;&#x53D1;</a></li><ul><li><span class="title-icon "></span><a href="#sdk&#x52A0;&#x5BC6;&#x65B9;&#x6848;"><b>1.1. </b>sdk&#x52A0;&#x5BC6;&#x65B9;&#x6848;</a></li><li><span class="title-icon "></span><a href="#sdk-&#x7248;&#x672C;&#x53F7;&#x547D;&#x540D;&#x53CA;&#x4FEE;&#x6539;&#x539F;&#x5219;"><b>1.2. </b>SDK &#x7248;&#x672C;&#x53F7;&#x547D;&#x540D;&#x53CA;&#x4FEE;&#x6539;&#x539F;&#x5219;</a></li><ul><li><span class="title-icon "></span><a href="#&#x5E0C;&#x814A;&#x5B57;&#x6BCD;&#x7248;&#x672C;&#x53F7;&#x8BF4;&#x660E;"><b>1.2.1. </b>&#x5E0C;&#x814A;&#x5B57;&#x6BCD;&#x7248;&#x672C;&#x53F7;&#x8BF4;&#x660E;</a></li><li><span class="title-icon "></span><a href="#&#x7248;&#x672C;&#x53F7;&#x4FEE;&#x6539;&#x89C4;&#x5219;"><b>1.2.2. </b>&#x7248;&#x672C;&#x53F7;&#x4FEE;&#x6539;&#x89C4;&#x5219;</a></li></ul><li><span class="title-icon "></span><a href="#api&#x7248;&#x672C;&#x7BA1;&#x7406;"><b>1.3. </b>API&#x7248;&#x672C;&#x7BA1;&#x7406;</a></li><li><span class="title-icon "></span><a href="#&#x7ECF;&#x9A8C;&#x4E4B;&#x8C08;"><b>1.4. </b>&#x7ECF;&#x9A8C;&#x4E4B;&#x8C08;</a></li><li><span class="title-icon "></span><a href="#sdk&#x5F00;&#x53D1;-module&#x652F;&#x6301;c"><b>1.5. </b>sdk&#x5F00;&#x53D1;-Module&#x652F;&#x6301;c++</a></li><li><span class="title-icon "></span><a href="#&#x6253;&#x5305;-aar"><b>1.6. </b>&#x6253;&#x5305; aar</a></li></ul></ul></div><a href="#sdk&#x5F00;&#x53D1;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="sdk&#x5F00;&#x53D1;"><a name="sdk&#x5F00;&#x53D1;" class="anchor-navigation-ex-anchor" href="#sdk&#x5F00;&#x53D1;"><i class="fa fa-link" aria-hidden="true"></i></a>1. SDK&#x5F00;&#x53D1;</h1>
<p>&#x5C06;&#x4E00;&#x4E9B;&#x4E1A;&#x52A1;&#x903B;&#x8F91;&#x72EC;&#x7ACB;&#x51FA;&#x6765;&#xFF0C;&#x6253;&#x5305;&#x6210;jar&#x3001;so&#x3001;aar&#xFF0C;&#x66B4;&#x9732;&#x4E00;&#x4E9B;APIs&#x7ED9;&#x5916;&#x90E8;&#x8C03;&#x7528;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x79F0;&#x4E3A;SDK&#x3002;
SDK &#x4E0D;&#x540C;&#x4E8E;&#x666E;&#x901A;&#x5E94;&#x7528;,&#x4E0D;&#x80FD;&#x9891;&#x7E41;&#x7684;&#x8FDB;&#x884C;&#x66F4;&#x65B0;,&#x4EE5;&#x514D;&#x8BA9;&#x5F00;&#x53D1;&#x8005;&#x89C9;&#x5F97; SDK &#x4E0D;&#x7A33;&#x5B9A;&#x6216;&#x8005;&#x8BA9;&#x5F00;&#x53D1;&#x8005;&#x9891;&#x7E41;&#x7684;&#x96C6;&#x6210; &#x3002;
&#x4E3A;&#x4E86;&#x5B89;&#x5168;&#x8D77;&#x89C1;,&#x6570;&#x636E;&#x52A0;&#x5BC6;&#x7C7B;&#x3001;&#x6A21;&#x5757;&#x7B97;&#x6CD5;&#x7C7B;&#x90FD;&#x90FD;&#x5E94;&#x8BE5;&#x91C7;&#x7528;NDK&#x5F00;&#x53D1; &#x3002;</p>
<h2 id="sdk&#x52A0;&#x5BC6;&#x65B9;&#x6848;"><a name="sdk&#x52A0;&#x5BC6;&#x65B9;&#x6848;" class="anchor-navigation-ex-anchor" href="#sdk&#x52A0;&#x5BC6;&#x65B9;&#x6848;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. sdk&#x52A0;&#x5BC6;&#x65B9;&#x6848;</h2>
<table>
<thead>
<tr>
<th>&#x65B9;&#x6848;&#x540D;&#x5B57;</th>
<th>&#x7F3A;&#x70B9;</th>
<th>&#x4F18;&#x70B9;</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#x4EE3;&#x7801;&#x6DF7;&#x6DC6;</td>
<td>1&#x3001;&#x6709;&#x4E9B;&#x7C7B;&#x4E0D;&#x80FD;&#x6DF7;&#x6DC6;&#xFF08;&#x4F8B;&#x5982;&#x5DE5;&#x5177;&#x7C7B;&#xFF0C;&#x81EA;&#x5B9A;&#x4E49;&#x63A7;&#x4EF6;&#x7B49;&#xFF0C;&#x5982;&#x679C;&#x88AB;&#x6DF7;&#x6DC6;&#x4E86;&#x7528;&#x6237;&#x5C31;&#x4E0D;&#x65B9;&#x4FBF;&#x8C03;&#x7528;&#xFF09;&#xFF0C;&#x6240;&#x4EE5;&#x5BF9;&#x4EE3;&#x7801;&#x67B6;&#x6784;&#x8981;&#x6C42;&#x6BD4;&#x8F83;&#x9AD8;&#x3002;<br>2&#x3001;&#x6DF7;&#x6DC6;&#x540E;&#x7684;&#x4EE3;&#x7801;&#x867D;&#x7136;&#x4E0D;&#x6613;&#x8BC6;&#x522B;&#x4E86;&#xFF0C;&#x4F46;&#x662F;&#x4ED4;&#x7EC6;&#x5206;&#x6790;&#x8FD8;&#x662F;&#x80FD;&#x770B;&#x61C2;&#x7684;&#x3002;</td>
<td></td>
</tr>
<tr>
<td>&#x4FEE;&#x6539;class&#x7684;&#x5B57;&#x6BB5;</td>
<td></td>
<td>&#x67D0;&#x4E9B;&#x5B57;&#x6BB5;&#x5BF9;&#x8FD0;&#x884C;&#x6CA1;&#x6709;&#x5F71;&#x54CD;&#xFF0C;&#x4F46;&#x662F;&#x80FD;&#x5BFC;&#x81F4;&#x522B;&#x4EBA;&#x65E0;&#x6CD5;&#x53CD;&#x7F16;&#x8BD1;&#x3002;</td>
</tr>
<tr>
<td>&#x81EA;&#x5B9A;&#x4E49;&#x7C7B;&#x52A0;&#x8F7D;&#x5668;ClassLoader</td>
<td>ClassLoader&#x5BB9;&#x6613;&#x88AB;&#x653B;&#x7834;</td>
<td></td>
</tr>
<tr>
<td>jvmti</td>
<td>&#x4E0D;&#x9002;&#x7528;&#x4E8E;Android&#x5E73;&#x53F0;&#xFF1F;&#xFF08;&#x6211;&#x6682;&#x65F6;&#x8FD8;&#x672A;&#x6D4B;&#x8BD5;&#x6210;&#x529F;&#xFF09;</td>
<td></td>
</tr>
</tbody>
</table>
<h2 id="sdk-&#x7248;&#x672C;&#x53F7;&#x547D;&#x540D;&#x53CA;&#x4FEE;&#x6539;&#x539F;&#x5219;"><a name="sdk-&#x7248;&#x672C;&#x53F7;&#x547D;&#x540D;&#x53CA;&#x4FEE;&#x6539;&#x539F;&#x5219;" class="anchor-navigation-ex-anchor" href="#sdk-&#x7248;&#x672C;&#x53F7;&#x547D;&#x540D;&#x53CA;&#x4FEE;&#x6539;&#x539F;&#x5219;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. SDK &#x7248;&#x672C;&#x53F7;&#x547D;&#x540D;&#x53CA;&#x4FEE;&#x6539;&#x539F;&#x5219;</h2>
<p>SDK&#x7248;&#x672C;&#x53F7;&#x547D;&#x540D;&#x548C;&#x6211;&#x4EEC;&#x4EE5;&#x5F80;&#x7684;&#x547D;&#x540D;&#x89C4;&#x5219;&#x5E76;&#x65E0;&#x592A;&#x5927;&#x4E0D;&#x540C;,&#x901A;&#x7531;4&#x90E8;&#x5206;&#x7EC4;&#x6210;,&#x683C;&#x5F0F;&#x4E3A;:</p>
<pre><code class="lang-text">V&#x4E3B;&#x7248;&#x672C;&#x53F7;_&#x5B50;&#x7248;&#x672C;&#x53F7;_&#x9636;&#x6BB5;&#x7248;&#x672C;&#x53F7;_&#x65E5;&#x671F;&#x7248;&#x672C;&#x53F7;_&#x5E0C;&#x814A;&#x5B57;&#x6BCD;&#x7248;&#x672C;&#x53F7;
&#x6BD4;&#x5982;&#xFF1A;V1_1_2_161209_beta.
</code></pre>
<h3 id="&#x5E0C;&#x814A;&#x5B57;&#x6BCD;&#x7248;&#x672C;&#x53F7;&#x8BF4;&#x660E;"><a name="&#x5E0C;&#x814A;&#x5B57;&#x6BCD;&#x7248;&#x672C;&#x53F7;&#x8BF4;&#x660E;" class="anchor-navigation-ex-anchor" href="#&#x5E0C;&#x814A;&#x5B57;&#x6BCD;&#x7248;&#x672C;&#x53F7;&#x8BF4;&#x660E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.1. &#x5E0C;&#x814A;&#x5B57;&#x6BCD;&#x7248;&#x672C;&#x53F7;&#x8BF4;&#x660E;</h3>
<pre><code class="lang-text">1&#x3001;Alpha&#x7248;:&#x5185;&#x90E8;&#x6D4B;&#x8BD5;&#x7248;&#x3002;&#x6B64;&#x7248;&#x672C;&#x8868;&#x793A;&#x8BE5;&#x8F6F;&#x4EF6;&#x5728;&#x8BE5;&#x9636;&#x6BB5;&#x4E3B;&#x8981;&#x662F;&#x4EE5;&#x5B9E;&#x73B0;&#x529F;&#x80FD;&#x4E3A;&#x4E3B;,Bug&#x76F8;&#x5BF9;&#x8F83;&#x591A;,&#x9700;&#x8981;&#x7EE7;&#x7EED;&#x4FEE;&#x6539;,&#x901A;&#x5E38;&#x53EA;&#x5728;&#x5185;&#x90E8;&#x6D41;&#x901A;&#x6D41;&#x901A;&#x800C;&#x4E0D;&#x5BF9;&#x5916;&#x5F00;&#x653E;&#x3002;
2&#x3001;Beta&#x7248;:&#x5916;&#x90E8;&#x6D4B;&#x8BD5;&#x7248;&#x3002;&#x8BE5;&#x7248;&#x672C;&#x76F8;&#x5BF9;Alpha&#x5DF2;&#x7ECF;&#x6709;&#x4E86;&#x5F88;&#x5927;&#x7684;&#x6539;&#x8FDB;,&#x4E0D;&#x5B58;&#x5728;&#x4E25;&#x91CD;&#x7684;Bug,&#x4F46;&#x8FD8;&#x662F;&#x5B58;&#x5728;&#x4E00;&#x4E9B;&#x7F3A;&#x9677;,&#x9700;&#x8981;&#x8FDB;&#x4E00;&#x6B65;&#x7684;&#x6D4B;&#x8BD5;&#x4EE5;&#x68C0;&#x67E5;&#x548C;&#x6D88;&#x9664;Bug&#x3002;
3&#x3001;RC&#x7248;: &#x8BE5;&#x7248;&#x672C;&#x5DF2;&#x7ECF;&#x76F8;&#x5F53;&#x6210;&#x719F;,&#x4E0D;&#x5B58;&#x5728;&#x5BFC;&#x81F4;&#x9519;&#x8BEF;&#x7684;Bug&#xFF0C;&#x4E0E;&#x6B63;&#x5F0F;&#x7248;&#x76F8;&#x5DEE;&#x65E0;&#x51E0;&#x3002;
4&#x3001;Release&#x7248;:&#x8BE5;&#x7248;&#x672C;&#x610F;&#x5473;&#x7740;&#x201D;&#x6700;&#x7EC8;&#x7248;&#x672C;&#x201D;,&#x662F;&#x6700;&#x7EC8;&#x4EA4;&#x4ED8;&#x7528;&#x6237;&#x6216;&#x8005;&#x516C;&#x5F00;&#x53D1;&#x5E03;&#x7684;&#x7248;&#x672C;,&#x4E5F;&#x79F0;&#x4E3A;&#x6807;&#x51C6;&#x7248;&#x3002;&#x5728;&#x53D1;&#x5E03;&#x7684;&#x65F6;&#x5019;&#x56DE;&#x4EE5;&#x7B26;&#x5408;R&#x6765;&#x4EE3;&#x66FF;Release&#x5355;&#x8BCD;&#x3002;
</code></pre>
<h3 id="&#x7248;&#x672C;&#x53F7;&#x4FEE;&#x6539;&#x89C4;&#x5219;"><a name="&#x7248;&#x672C;&#x53F7;&#x4FEE;&#x6539;&#x89C4;&#x5219;" class="anchor-navigation-ex-anchor" href="#&#x7248;&#x672C;&#x53F7;&#x4FEE;&#x6539;&#x89C4;&#x5219;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.2. &#x7248;&#x672C;&#x53F7;&#x4FEE;&#x6539;&#x89C4;&#x5219;</h3>
<pre><code class="lang-text">1&#x3001; &#x4E3B;&#x7248;&#x672C;&#x53F7;&#x53D8;&#x5316;:&#x5F53;&#x529F;&#x80FD;&#x6A21;&#x5757;&#x6709;&#x8F83;&#x5927;&#x7684;&#x53D8;&#x5316;&#x6216;&#x8005;&#x6574;&#x4F53;&#x67B6;&#x6784;&#x53D1;&#x751F;&#x53D8;&#x5316;
2&#x3001;&#x5B50;&#x7248;&#x672C;&#x53F7;&#x53D8;&#x5316;:&#x5F53;&#x529F;&#x80FD;&#x6709;&#x4E00;&#x5B9A;&#x53D8;&#x5316;
3&#x3001;&#x9636;&#x6BB5;&#x7248;&#x672C;&#x53F7;&#x53D8;&#x5316;:&#x4E00;&#x822C;&#x662F;Bug&#x4FEE;&#x590D;&#x6216;&#x8005;&#x8F83;&#x5C0F;&#x7684;&#x53D8;&#x52A8;,&#x6839;&#x636E;&#x53CD;&#x9988;,&#x9700;&#x8981;&#x7ECF;&#x5E38;&#x53D1;&#x5E03;&#x4FEE;&#x8BA2;&#x7248;&#x672C;.
4&#x3001;&#x65E5;&#x671F;&#x7248;&#x672C;&#x53F7;(161209):&#x7528;&#x4E8E;&#x8BB0;&#x5F55;&#x4FEE;&#x6539;&#x9879;&#x76EE;&#x7684;&#x5F53;&#x524D;&#x65E5;&#x671F;,&#x6BCF;&#x5929;&#x5BF9;&#x9879;&#x76EE;&#x7684;&#x4FEE;&#x6539;&#x90FD;&#x8981;&#x66F4;&#x6539;&#x65E5;&#x671F;&#x7248;&#x672C;&#x53F7;.
5&#x3001;&#x5E0C;&#x814A;&#x5B57;&#x6BCD;&#x7248;&#x672C;&#x53F7;:&#x6B64;&#x7248;&#x672C;&#x53F7;&#x7528;&#x4E8E;&#x6807;&#x6CE8;&#x5F53;&#x524D;&#x8F6F;&#x4EF6;&#x5904;&#x4E8E;&#x90A3;&#x4E2A;&#x5F00;&#x53D1;&#x9636;&#x6BB5;,&#x5F53;&#x8F6F;&#x4EF6;&#x8FDB;&#x5165;&#x5230;&#x53E6;&#x4E00;&#x4E2A;&#x9636;&#x6BB5;&#x662F;&#x9700;&#x8981;&#x4FEE;&#x6539;.
</code></pre>
<h2 id="api&#x7248;&#x672C;&#x7BA1;&#x7406;"><a name="api&#x7248;&#x672C;&#x7BA1;&#x7406;" class="anchor-navigation-ex-anchor" href="#api&#x7248;&#x672C;&#x7BA1;&#x7406;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. API&#x7248;&#x672C;&#x7BA1;&#x7406;</h2>
<pre><code class="lang-text">&#x539F;&#x5219;&#x4E0A;SDK API&#x4E00;&#x65E6;&#x516C;&#x5F00;&#x53D1;&#x5E03;&#x540E;&#x5176;&#x72B6;&#x6001;&#x5E94;&#x4E3A;&#x4E0D;&#x53EF;&#x53D8;&#x3002;
1&#x3001;&#x5BF9;&#x4E8E;&#x7279;&#x6B8A;&#x60C5;&#x51B5;&#x4E0B;API&#x7684;&#x53D8;&#x66F4;,&#x9700;&#x8981;&#x9075;&#x5B88;&#x201D;&#x5F00;&#x95ED;&#x539F;&#x5219;&#x201D;
2&#x3001;&#x5728;&#x9700;&#x8981;&#x5E9F;&#x9664;&#x67D0;&#x4E9B;&#x65B9;&#x6CD5;&#x65F6;,&#x9700;&#x8981;&#x5728;&#x6B63;&#x5F0F;&#x7248;&#x53D1;&#x7248;&#x524D;&#x4F7F;&#x7528; @deprecated &#x6807;&#x8BC6;&#x3002;&#x5E76;&#x7ED9;&#x51FA;&#x66FF;&#x4EE3;&#x65B9;&#x6848;&#x548C;&#x5F00;&#x59CB;&#x5E9F;&#x5F03;&#x7684; SDK&#x7248;&#x672C;&#x53F7;&#x3002;
</code></pre>
<h2 id="&#x7ECF;&#x9A8C;&#x4E4B;&#x8C08;"><a name="&#x7ECF;&#x9A8C;&#x4E4B;&#x8C08;" class="anchor-navigation-ex-anchor" href="#&#x7ECF;&#x9A8C;&#x4E4B;&#x8C08;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4. &#x7ECF;&#x9A8C;&#x4E4B;&#x8C08;</h2>
<p>&#x539F;&#x6587; <a href="http://blog.csdn.net/dd864140130" target="_blank">http://blog.csdn.net/dd864140130</a> &#x6709;&#x5220;&#x51CF;&#x3002;</p>
<pre><code class="lang-text">//SDK&#x5B9E;&#x73B0;&#x76EE;&#x6807;
1&#x3001;&#x7B80;&#x6D01;&#x6613;&#x7528;
SDK&#x4E0D;&#x5E94;&#x8BE5;&#x5BF9;&#x5BBF;&#x4E3B;&#x5E94;&#x7528;&#x6709;&#x8FC7;&#x591A;&#x7684;&#x4EE3;&#x7801;&#x4FB5;&#x5165;,&#x4E5F;&#x4E0D;&#x5E94;&#x8BE5;&#x6709;&#x590D;&#x6742;&#x9891;&#x7E41;&#x7684;&#x63A5;&#x5165;&#x5DE5;&#x4F5C;&#x3002;
&#x5F53;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x8BE5; SD K&#x7684;&#x670D;&#x52A1;&#x65F6;,&#x901A;&#x8FC7;&#x4E00;&#x884C;&#x4EE3;&#x7801;&#x4FBF;&#x53EF;&#x542F;&#x7528; Ad.init(this,params)

2&#x3001;&#x7A33;&#x5B9A;
&#x2460; SDK&#x7684;API&#x4E00;&#x65E6;&#x786E;&#x5B9A;,&#x5982;&#x65E0;&#x975E;&#x5E38;&#x4E25;&#x91CD;&#x60C5;&#x51B5;&#x4E0D;&#x53EF;&#x66F4;&#x6539;&#x3002;
&#x2461;&#x3001;&#x5FC5;&#x987B;&#x786E;&#x4FDD;SDK&#x81EA;&#x8EAB;&#x8FD0;&#x884C;&#x7684;&#x7A33;&#x5B9A;,&#x5E76;&#x4E14;&#x4FDD;&#x8BC1;&#x63A5;&#x5165;&#x65B9;&#x4E0D;&#x4F1A;&#x56E0;&#x4E3A;&#x6211;&#x4EEC;&#x7684;SDK&#x4EA7;&#x751F;&#x4E0D;&#x7A33;&#x5B9A;&#x3002;
&#x2462;&#x3001;&#x4E0D;&#x80FD;&#x9891;&#x7E41;&#x66F4;&#x65B0;&#x8FED;&#x4EE3;&#x3002;&#x9632;&#x6B62;&#x589E;&#x52A0;&#x7528;&#x6237;&#x8D1F;&#x62C5;&#x3002;

//SDK&#x6574;&#x4F53;&#x67B6;&#x6784;&#x8BBE;&#x8BA1;
&#x6A21;&#x5757;&#x5316;&#x5F00;&#x53D1;
&#x6839;&#x636E;&#x5355;&#x4E00;&#x804C;&#x8D23;&#x5C06;&#x7CFB;&#x7EDF;&#x62C6;&#x5206;&#x4E3A;&#x4E0D;&#x540C;&#x7684;&#x5C0F;&#x6A21;&#x5757;&#xFF0C;&#x6BCF;&#x4E2A;&#x6A21;&#x5757;&#x4FDD;&#x6301;&#x76F8;&#x5BF9;&#x72EC;&#x7ACB;&#x3002;
&#x6A21;&#x5757;&#x4E4B;&#x95F4;&#x901A;&#x8FC7;&#x534F;&#x8BAE;&#x6216;&#x63A5;&#x53E3;&#x901A;&#x4FE1;&#xFF0C;&#x4EE5;&#x51CF;&#x5C11;&#x76F8;&#x4E92;&#x4E4B;&#x95F4;&#x7684;&#x4F9D;&#x8D56;&#x8026;&#x5408;&#x3002;

&#x4E3A;&#x4E86;&#x5B89;&#x5168;&#x8D77;&#x89C1;, &#x6838;&#x5FC3;&#x903B;&#x8F91;&#x5E94;&#x8BE5;&#x91C7;&#x7528;NDK&#x5F00;&#x53D1;&#x3002;

//API&#x7248;&#x672C;&#x7BA1;&#x7406;
&#x539F;&#x5219;&#x4E0A;SDK API&#x4E00;&#x65E6;&#x516C;&#x5F00;&#x53D1;&#x5E03;&#x540E;&#xFF0C;&#x5E94;&#x4E3A;&#x4E0D;&#x53EF;&#x53D8;&#x3002;
&#x5BF9;&#x4E8E;&#x7279;&#x6B8A;&#x60C5;&#x51B5;&#x4E0B;API&#x7684;&#x53D8;&#x66F4;,&#x9700;&#x8981;&#x9075;&#x5B88;&#x201D;&#x5F00;&#x95ED;&#x539F;&#x5219;&#x201D;:
1&#x3001;&#x5728;&#x9700;&#x8981;&#x8C03;&#x6574;SDK API&#x65F6;,&#x4F18;&#x5148;&#x9009;&#x62E9;&#x6DFB;&#x52A0;&#x65B0;&#x65B9;&#x6CD5;,&#x800C;&#x4E0D;&#x662F;&#x5728;&#x539F;&#x65B9;&#x6CD5;&#x4E0A;&#x4FEE;&#x6539; &#x3002;
2&#x3001;&#x5728;&#x9700;&#x8981;&#x5E9F;&#x9664;&#x67D0;&#x4E9B;&#x65B9;&#x6CD5;&#x65F6;,&#x9700;&#x8981;&#x5728;&#x6B63;&#x5F0F;&#x7248;&#x53D1;&#x7248;&#x524D;&#x4F7F;&#x7528; @deprecated &#x6807;&#x8BC6;,&#x5E76;&#x6807;&#x660E;&#x5F00;&#x59CB;&#x5E9F;&#x5F03;&#x7684;&#x7248;&#x672C;&#x3002;
</code></pre>
<h2 id="sdk&#x5F00;&#x53D1;-module&#x652F;&#x6301;c"><a name="sdk&#x5F00;&#x53D1;-module&#x652F;&#x6301;c" class="anchor-navigation-ex-anchor" href="#sdk&#x5F00;&#x53D1;-module&#x652F;&#x6301;c"><i class="fa fa-link" aria-hidden="true"></i></a>1.5. sdk&#x5F00;&#x53D1;-Module&#x652F;&#x6301;c++</h2>
<pre><code class="lang-text">1&#x3001;&#x6309;&#x7167;&#x6B63;&#x5E38;&#x6D41;&#x7A0B;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x652F;&#x6301;c++&#x7684;&#x9879;&#x76EE;&#x3002;
&#x6B64;&#x65F6; CMakeLists.txt &#x6587;&#x4EF6;&#x5728; app &#x8FD9;&#x4E2A;&#x9879;&#x76EE;&#x91CC;&#x9762;&#x3002;

2&#x3001;&#x65B0;&#x5EFA;&#x4E00;&#x4E2A;module &#xFF0C;&#x5E76;&#x6DFB;&#x52A0;&#x5230;app&#x4E2D;&#x3002;
3&#x3001;&#x5C06; CMakeLists.txt &#x526A;&#x5207;&#x5230; module&#x5BF9;&#x5E94;&#x7684; &#x76EE;&#x5F55;&#x4E0B;&#x3002;

4&#x3001; &#x540C;&#x7406; &#xFF0C;&#x4EE5;&#x4E0B;&#x4EE3;&#x7801;&#x4E5F;&#x526A;&#x5207;&#x5230; module&#x5BF9;&#x5E94;&#x7684;&#x6587;&#x4EF6;&#x4E2D;&#x53BB;&#x3002;

externalNativeBuild {
    cmake {
        path &quot;CMakeLists.txt&quot;
    }
}

externalNativeBuild {
    cmake {
        cppFlags &quot;-std=c++11 -frtti -fexceptions&quot;
    }
}

5&#x3001;&#x5237;&#x65B0;&#x5DE5;&#x7A0B;&#x5373;&#x53EF;&#x3002;
</code></pre>
<h2 id="&#x6253;&#x5305;-aar"><a name="&#x6253;&#x5305;-aar" class="anchor-navigation-ex-anchor" href="#&#x6253;&#x5305;-aar"><i class="fa fa-link" aria-hidden="true"></i></a>1.6. &#x6253;&#x5305; aar</h2>
<pre><code class="lang-text">// 1&#x3001;&#x751F;&#x6210; aar &#x6587;&#x4EF6;&#xFF1A;
&#x5BF9; library &#x8FDB;&#x884C; build &#x5373;&#x53EF;&#x751F;&#x6210; AAR &#x3002;

// 2&#x3001; &#x4F7F;&#x7528; aar
&#x573A;&#x666F;&#xFF1A;&#x5C06; aar &#x653E;&#x5230;&#x4E00;&#x4E2A;&#x57FA;&#x7840; library &#xFF0C;base_library &#x7684;libs&#x4E0B;&#x3002;
&#x7136;&#x540E;&#x5176;&#x4ED6; library &#x90FD;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x5230;&#x8FD9;&#x4E2A;aar &#x3002;

&#x2460; base_library &#x7684; build.gradle&#x914D;&#x7F6E; 
android {
    repositories {
        flatDir {
            dirs &apos;libs&apos;,aar_comm_path
        }
    }
}
dependencies {
    api(name: &apos;aar&#x540D;&apos;, ext: &apos;aar&apos;)
}

&#x2461; &#x6574;&#x4E2A;&#x9879;&#x76EE;&#x4E0B;&#x7684; build.gradle &#x914D;&#x7F6E;
allprojects {
    repositories {
        flatDir {
            dirs aar_comm_path
        }
    }
}

&#x2462; &#x914D;&#x7F6E;&#x5176;&#x4ED6;&#x6240;&#x6709;&#x4F9D;&#x8D56; base_library &#x5E76;&#x4E14;&#x9700;&#x8981;&#x4F7F;&#x7528; aar &#x7684; library    
android {
    repositories {
        flatDir {
            dirs &apos;libs&apos;, aar_comm_path
        }
    }
}

&#x2463;  &#x914D;&#x7F6E;&#x81EA;&#x5B9A;&#x4E49;&#x53D8;&#x91CF; aar_comm_path &#x7684;&#x8DEF;&#x5F84;
&#x5728; gradle.properties&#x4E2D;&#x8FDB;&#x884C;&#x4E86;&#x914D;&#x7F6E;
aar_comm_path=../base_library/libs
</code></pre>
<footer class="page-footer"><span class="copyright">( no Copyright&#xFF0C;enjoy youself ! ) all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">The file was updated at :
2022-04-04 10:49:02
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="App组件化开发.html" class="navigation navigation-prev " aria-label="Previous page: App组件化开发">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="APP优化.html" class="navigation navigation-next " aria-label="Next page: APP优化">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"sdk开发","level":"1.12.28","depth":2,"next":{"title":"APP优化","level":"1.12.29","depth":2,"path":"chinese/android基础/APP优化.md","ref":"chinese/android基础/APP优化.md","articles":[]},"previous":{"title":"App组件化开发","level":"1.12.27","depth":2,"path":"chinese/android基础/App组件化开发.md","ref":"chinese/android基础/App组件化开发.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-search","search-plus","todo","anchor-navigation-ex","copy-code-button","fontsettings","tbfed-pagefooter","local-video","splitter","expandable-chapters","favicon","theme-comscore","local-video"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"( no Copyright，enjoy youself ! )","modify_label":"The file was updated at :","modify_format":"YYYY-MM-DD HH:mm:ss"},"todo":{},"splitter":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"family":"sans","size":2,"theme":"white"},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"favicon":{"shortcut":"assets/images/favicon.ico","bookmark":"assets/images/favicon.ico"},"theme-comscore":{},"local-video":{},"copy-code-button":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"Aivin","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Aivin开发笔记","language":"zh-hans","gitbook":"*","description":"Aivin开发笔记"},"file":{"path":"chinese/android基础/sdk开发.md","mtime":"2022-04-04T02:49:02.750Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-04-04T03:47:09.782Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-local-video/video.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

